<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>08-上下margin折叠_01-兄弟元素</title>
    <style>
        div {
            width: 100px;
            height: 100px;
            background-color: #f00;
        }

        .div1 {
            margin-bottom: 60px;
        }

        .div2 {
            margin-top: 40px;
        }
    </style>
</head>
<body>

<div class="div1"></div>
<div class="div2"></div>

</body>
</html>